package com.yiyi.credit.manage.abutment.common.exceptions;


import com.yiyi.credit.manage.abutment.common.enums.ResponseCode;

public class FatalException extends ServiceException {

    private String remark;
    private String title;

    public FatalException(String title) {
        super(title);
        this.remark = title;
        this.title = title;
    }

    public FatalException(String errorMsg, String title, String remark) {
        super(errorMsg);
        this.remark = remark;
        this.title = title;
    }

    public FatalException(String errorCode, String errorMsg, String title, String remark) {
        super(errorCode, errorMsg);
        this.remark = remark;
        this.title = title;
    }

    public FatalException(ResponseCode responseCode, String title, String remark) {
        super(responseCode);
        this.remark = remark;
        this.title = title;
    }

    public FatalException(ServiceException e) {
        super(e);
    }

    public FatalException(Exception e) {
        super(e);
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
